<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>数据集成</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
    <script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
</head>
<body class="bg-gray-50">
    <!-- Header -->
    <div class="bg-white p-4 shadow-sm">
        <div class="flex items-center justify-between">
            <h1 class="text-xl font-semibold text-gray-800">数据集成</h1>
            <div class="flex items-center space-x-2">
                <button class="p-2 text-gray-600 hover:text-gray-800">
                    <i class="fas fa-sync"></i>
                </button>
                <button class="p-2 text-gray-600 hover:text-gray-800">
                    <i class="fas fa-cog"></i>
                </button>
            </div>
        </div>
    </div>

    <!-- Main Content -->
    <div class="p-4 space-y-4">
        <!-- Data Source Status -->
        <div class="bg-white rounded-lg shadow-sm p-4">
            <h2 class="text-lg font-medium text-gray-800 mb-4">数据源状态</h2>
            <div class="space-y-3">
                <div class="flex items-center justify-between p-3 bg-green-50 rounded-lg">
                    <div class="flex items-center space-x-3">
                        <i class="fas fa-database text-green-600"></i>
                        <div>
                            <div class="font-medium">MES系统</div>
                            <div class="text-xs text-gray-500">最后同步: 2分钟前</div>
                        </div>
                    </div>
                    <span class="text-sm text-green-600">正常</span>
                </div>
                <div class="flex items-center justify-between p-3 bg-green-50 rounded-lg">
                    <div class="flex items-center space-x-3">
                        <i class="fas fa-industry text-green-600"></i>
                        <div>
                            <div class="font-medium">工位数据</div>
                            <div class="text-xs text-gray-500">最后同步: 1分钟前</div>
                        </div>
                    </div>
                    <span class="text-sm text-green-600">正常</span>
                </div>
                <div class="flex items-center justify-between p-3 bg-yellow-50 rounded-lg">
                    <div class="flex items-center space-x-3">
                        <i class="fas fa-cogs text-yellow-600"></i>
                        <div>
                            <div class="font-medium">设备运行数据</div>
                            <div class="text-xs text-gray-500">最后同步: 5分钟前</div>
                        </div>
                    </div>
                    <span class="text-sm text-yellow-600">延迟</span>
                </div>
            </div>
        </div>

        <!-- Data Storage Status -->
        <div class="bg-white rounded-lg shadow-sm p-4">
            <h2 class="text-lg font-medium text-gray-800 mb-4">数据存储状态</h2>
            <div class="space-y-4">
                <!-- Storage Usage -->
                <div>
                    <div class="flex justify-between mb-2">
                        <span class="text-sm text-gray-600">存储使用率</span>
                        <span class="text-sm font-medium">65%</span>
                    </div>
                    <div class="w-full bg-gray-200 rounded-full h-2">
                        <div class="bg-blue-600 h-2 rounded-full" style="width: 65%"></div>
                    </div>
                </div>
                <!-- Storage Details -->
                <div class="grid grid-cols-2 gap-4">
                    <div class="bg-gray-50 p-3 rounded-lg">
                        <div class="text-sm text-gray-600">实时数据</div>
                        <div class="text-lg font-medium">2.5GB</div>
                    </div>
                    <div class="bg-gray-50 p-3 rounded-lg">
                        <div class="text-sm text-gray-600">历史数据</div>
                        <div class="text-lg font-medium">15.8GB</div>
                    </div>
                </div>
            </div>
        </div>

        <!-- Data Backup Status -->
        <div class="bg-white rounded-lg shadow-sm p-4">
            <h2 class="text-lg font-medium text-gray-800 mb-4">数据备份状态</h2>
            <div class="space-y-3">
                <div class="flex items-center justify-between p-3 bg-gray-50 rounded-lg">
                    <div class="flex items-center space-x-3">
                        <i class="fas fa-cloud-upload-alt text-blue-600"></i>
                        <div>
                            <div class="font-medium">自动备份</div>
                            <div class="text-xs text-gray-500">每日 00:00</div>
                        </div>
                    </div>
                    <span class="text-sm text-green-600">已启用</span>
                </div>
                <div class="flex items-center justify-between p-3 bg-gray-50 rounded-lg">
                    <div class="flex items-center space-x-3">
                        <i class="fas fa-history text-purple-600"></i>
                        <div>
                            <div class="font-medium">上次备份</div>
                            <div class="text-xs text-gray-500">2024-03-15 00:00</div>
                        </div>
                    </div>
                    <button class="px-3 py-1 bg-blue-600 text-white rounded-full text-sm">
                        查看详情
                    </button>
                </div>
            </div>
        </div>

        <!-- Data Security -->
        <div class="bg-white rounded-lg shadow-sm p-4">
            <h2 class="text-lg font-medium text-gray-800 mb-4">数据安全</h2>
            <div class="space-y-3">
                <div class="flex items-center justify-between p-3 bg-gray-50 rounded-lg">
                    <div class="flex items-center space-x-3">
                        <i class="fas fa-shield-alt text-green-600"></i>
                        <span class="text-gray-800">数据加密</span>
                    </div>
                    <span class="text-sm text-green-600">已启用</span>
                </div>
                <div class="flex items-center justify-between p-3 bg-gray-50 rounded-lg">
                    <div class="flex items-center space-x-3">
                        <i class="fas fa-user-shield text-blue-600"></i>
                        <span class="text-gray-800">访问控制</span>
                    </div>
                    <span class="text-sm text-green-600">已启用</span>
                </div>
                <div class="flex items-center justify-between p-3 bg-gray-50 rounded-lg">
                    <div class="flex items-center space-x-3">
                        <i class="fas fa-history text-purple-600"></i>
                        <span class="text-gray-800">操作日志</span>
                    </div>
                    <button class="px-3 py-1 bg-blue-600 text-white rounded-full text-sm">
                        查看日志
                    </button>
                </div>
            </div>
        </div>
    </div>
</body>
</html> 